home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / doc / efun / m_reallocate < prev    next >
Text File  |  2001-04-06  |  716b  |  23 lines

  1. SYNOPSIS
  2.         mapping m_reallocate(mapping m, int width)
  3.  
  4. DESCRIPTION
  5.         Create a new mapping with <width> values per key and fill it
  6.         with the values from mapping <m>. If <m> has less than <width>
  7.         values per key, the extra values in the result are set to 0.
  8.         If <m> has more values per key, the extra values are ignored.
  9.  
  10.         The mapping <m> is not changed.
  11.  
  12. EXAMPLE
  13.         mapping m = ([ "foo":1;2;3, "bar":4;5;6 ])
  14.  
  15.         m_reallocate(m, 1) --> returns ([ "foo":1,       "bar:4 ])
  16.         m_reallocate(m, 4) --> returns ([ "foo":1;2;3;0, "bar:4;5;6;0 ])
  17.  
  18. HISTORY
  19.         Introduced in LDMud 3.2.6, suggested by TubMud.
  20.  
  21. SEE ALSO
  22.         m_allocate(E), m_values(E), widthof(E)
  23.